package com.example.datacollection.mapper;

import com.example.datacollection.bean.DataDemography;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DataDemographyMapper {


    List<DataDemography> getPopulation();
    /**
     * 批量插入统计数据
     * @param list
     * @return
     */
    int savePopulation (@Param("list") List<DataDemography> list);

    /**
     * 清空表结构
     * @return
     */
    int deletePopulation();
}
